package com.design.model;

/**
 * def
 *
 * @author lw
 * @date 2023/12/1 15:00
 **/
public class AdapterPatternExample {

    public static void main(String[] args) {
        LegacyRectangle legacyRectangle = new LegacyRectangle();
        Shape shapeAdapter = new RectangleAdapter(legacyRectangle);

        shapeAdapter.draw(10, 20, 50, 30);
    }
}
